
using System;
using System.Data;

namespace Serpis
{
	public static class IDbCommandExtensions
	{
		public static void AddParameter(this IDbCommand dbCommand, string parameterName, object parameterValue)
		{
			IDbDataParameter dbDataParameter = dbCommand.CreateParameter();
			dbDataParameter.ParameterName = parameterName;
			dbDataParameter.Value = parameterValue;
			dbCommand.Parameters.Add(dbDataParameter);
		}
		
	}
}
